package org.chl.chapter02;

import java.util.HashMap;
import java.util.Map;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyConfiguration {

	public MyConfiguration() {
		System.out.println("----------------启动容器初始化spring-------------");
	}
	
	@Bean("nameMap")
	public Map<String, Object> nameMap() {
		Map<String, Object> nameMap = new HashMap<>();
		nameMap.put("chl", "陈宏亮");
		nameMap.put("diyee", "帝一");
		return nameMap;
	}

}
